package com.ins.model.dto.app;

import com.ins.model.dto.BaseDTO;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 订单明细(AppOrderItem)实体类
 *
 * @author ins
 * @since 2024-05-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class AppOrderItemDTO extends BaseDTO implements Serializable {
    @Serial
    private static final long serialVersionUID = 509315575603571448L;

    /**
     * 订单id
     */
    private Long orderId;
    /**
     * 订单编号
     */
    private String orderNo;
    /**
     * 信息id
     */
    @NotNull(message = "请选择购买信息")
    private Long infoId;
    /**
     * 信息分类id
     */
    private String infoClassify;

    /**
     * 单价
     */
    private BigDecimal price;

    /**
     * 购买数量
     */
    @NotNull(message = "请选择购买数量")
    private Integer num;

}

